GestureDetectorCompat
Deprecated
Use android.view.GestureDetector directly
Detects various gestures and events using the supplied MotionEvents. The OnGestureListener callback will notify users when a particular motion event has occurred. This class should only be used with MotionEvents reported via touch (don't use for trackball events).
This compatibility implementation of the framework's GestureDetector guarantees the newer focal point scrolling behavior from Jellybean MR1 on all platform versions.
To use this class:- Create an instance of the
GestureDetectorCompat
for your View - In the onTouchEvent method ensure you call onTouchEvent. The methods defined in your callback will be executed when the events occur.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Analyzes the given motion event and if applicable triggers the appropriate callbacks on the OnGestureListener supplied.
Link copied to clipboard
Set whether longpress is enabled, if this is enabled when a user presses and holds down you get a longpress event and nothing further.
Link copied to clipboard
Sets the listener which will be called for double-tap and related gestures.